//
//  WJCarCollectionCell.m
//  JerryIos
//
//  Created by 王军 on 2018/2/5.
//  Copyright © 2018年 王军. All rights reserved.
//

#import "WJXibCollectionCell.h"

@interface WJXibCollectionCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nameView;

@end

@implementation WJXibCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.iconView.layer.cornerRadius = 8;
    self.iconView.clipsToBounds = YES;
}

- (void)setCar:(WJCar *)car {
    _car = car;
    
    _iconView.image = [UIImage imageNamed:car.icon];
    _nameView.text = car.name;
    
}
@end
